Skip to content

Remove Reward Shop and Points features#59

Merged
JoeProgrammer88 merged 3 commits intomainfrom
copilot/remove-reward-shop-and-points
Mar 25, 2026
Merged

Remove Reward Shop and Points features#59
JoeProgrammer88 merged 3 commits intomainfrom
copilot/remove-reward-shop-and-points

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 25, 2026

Users don't use the Reward Shop, so removing it along with the associated points system to reduce complexity. Existing user data auto-migrates on first load.

Storage (src/storage.ts)

  • Bumped DATA_SCHEMA_VERSION to 2; initializeStorage() now auto-runs migrateToLatest() when stored schema is older — tasks, habits, projects, finances etc. are preserved; rewards, purchaseHistory, totalPoints, and pointsBreakdown are dropped
  • Removed Reward, Purchase, PurchaseResult, PointsBreakdown interfaces and points field from Task/Habit
  • Added LegacyUserStats interface to safely cast old userStats during migration instead of as any
  • Removed addReward, updateReward, deleteReward, getRewards, purchaseReward, getPurchaseHistory, addPoints methods

App logic (src/app.ts)

  • Removed renderShop, reward modal methods, purchaseReward, currentEditingRewardId
  • Removed addPoints() calls from task/habit completion; removed points from task/habit form read/write and card rendering

UI (index.html)

  • Removed Points header stat (Level and Streak remain), 🛒 Shop nav tab, Shop tab section, Reward modal, and Points Value fields from task/habit forms

Tests (tests/storage.test.ts)

  • Removed rewards shop and points and leveling suites; replaced with leveling and streak keeping level/streak coverage

UI after changes — no Shop tab, no Points stat

Original prompt

This section details on the original issue you should resolve

<issue_title>Remove Reward Shop and Points Features</issue_title>
<issue_description>Current users do not use the Reward Shop, the "Shop" tab. We can remove that, along with the points feature to simplify the app. We need to ensure the user save data migrates to the new version of the app</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Copilot AI changed the title [WIP] Remove Reward Shop and points features to simplify the app Remove Reward Shop and Points features Mar 25, 2026
Copilot AI requested a review from JoeProgrammer88 March 25, 2026 22:42
Copy link
Copy Markdown
Member

@JoeProgrammer88 JoeProgrammer88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some tests dealing with #totalPoints are failing and should be removed/modified as needed. The tests looking for the reward shop tab should be removed as well

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 25, 2026

Some tests dealing with #totalPoints are failing and should be removed/modified as needed. The tests looking for the reward shop tab should be removed as well

Fixed in de093b6. Removed the #totalPoints assertion from the header stats e2e test (leaving the Level and Streak checks), removed the entire rewards shop describe block from the e2e tests, and cleaned up points references from the task data objects used in other e2e tests.

Copilot AI requested a review from JoeProgrammer88 March 25, 2026 22:56
@JoeProgrammer88 JoeProgrammer88 marked this pull request as ready for review March 25, 2026 22:57
@JoeProgrammer88 JoeProgrammer88 merged commit c6dcb6a into main Mar 25, 2026
1 check passed
@JoeProgrammer88 JoeProgrammer88 deleted the copilot/remove-reward-shop-and-points branch March 25, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Reward Shop and Points Features

2 participants